package com.zbb.exam_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zbbstart
 * @date 2021/2/8 - 10:26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "用户对象", description = "封装了用户的各个属性后得到的一个实体对象")
public class User implements Serializable {
    private static final long serialVersionUID = -5331287010621304880L;
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "用户编号", example = "1")
    private Integer id;
    @ApiModelProperty(name = "id", value = "用户名称", example = "Tom")
    private String username;
    @ApiModelProperty(name = "id", value = "用户密码", example = "123456")
    private String password;
    @ApiModelProperty(name = "id", value = "用户状态", example = "1代表可用，0代表账号被冻结")
    private Integer status;
    @ApiModelProperty(name = "id", value = "用户描述信息", example = "学生")
    private String descn;

}
